.vp-back-to-top-button {
  position: fixed !important;
  bottom: 4rem;
  inset-inline-end: 1rem;
  z-index: 100;

  width: 48px;
  height: 48px;
  padding: 8px;
  border-width: 0;
  border-radius: 50%;

  background: var(--back-to-top-bg-color);
  color: var(--back-to-top-color);
  box-shadow: 2px 2px 10px 4px var(--back-to-top-shadow);

  cursor: pointer;

  @media (max-width: 959px) {
    transform: scale(0.8);
    transform-origin: 100% 100%;
  }
  @media print {
    display: none;
  }

  &:hover {
    color: var(--back-to-top-color-hover);
  }

  .back-to-top-icon {
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: currentcolor;
    border-radius: 50%;
    -webkit-mask-image: var(--back-to-top-icon);
    mask-image: var(--back-to-top-icon);
    -webkit-mask-position: 50%;
    mask-position: 50%;
    -webkit-mask-size: cover;
    mask-size: cover;
  }
}

.vp-scroll-progress {
  position: absolute;
  right: -2px;
  bottom: -2px;

  width: 52px;
  height: 52px;

  svg {
    width: 100%;
    height: 100%;
  }

  circle {
    opacity: 0.9;

    transform: rotate(-90deg);
    transform-origin: 50% 50%;
  }
}

.back-to-top-enter-active,
.back-to-top-leave-active {
  transition: opacity 0.3s;
}

.back-to-top-enter-from,
.back-to-top-leave-to {
  opacity: 0;
}
